
import apiType, {
    GET_WAREHOUSE_PURCHASE_LIST
} from "@constants/ActionTypes";

const initialState = {
    inventoryPurchaseList:{},       //采购入库单列表
}

export default function update(state = initialState, action) {
    const { response, params, payload } = action
    switch (action.type) {
        case apiType(GET_WAREHOUSE_PURCHASE_LIST).success:
            return {
                ...state,
                inventoryPurchaseList: response,
            }

        default:
            return state
    }
}